<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script type="text/javascript" src="../js/vue.js"></script>
  <title>模板语法</title>
</head>
<body>
  <div id="root">
    <h2>插值语法的使用</h2>
    <hr>
    <a v-bind:href="Bing_url">{{Bing_title}}</a>
    <a :href="BaiDu_url">{{BaiDu_title}}</a>
  </div>
  <script type="text/javascript">
    Vue.config.productionTip = false //阻止vue启动时生成生产提示
    const x= new Vue({
      el:'#root',
      data:{ 
        Bing_title:'Bing',
        BaiDu_title:'BaiDu',
        Bing_url:'http://www.bing.com',
        BaiDu_url:'http://www.baidu.com'
      }
    })
  </script>
</body>
</html>